package com.mini.conditon;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by shixi  on 2020/12/04
 */
@Data
public class ChanceBaseInfoCondition {

    /**
     * 机会id
     */
    @ApiModelProperty(value = "机会id")
    private Long id;

    /**
     * 学员昵称
     */
    @ApiModelProperty(value = "学员昵称")
    private String studentNickname;

    /**
     * 省
     */

    @ApiModelProperty(value = "省id")
    private String provinceId;
    /**
     * 市
     */
    @ApiModelProperty(value = "市id")
    private String cityId;
    /**
     *意向
     */
    @ApiModelProperty(value = "意向 未知:-1/无: 0/低:1/中:2/高:3")
    private Integer intentionCode;

    public enum ChanceStatusEnum{

        follow(1,"跟进中"),
        unfollow(0, "未跟进"),
        nodistribute(-1,"未分配"),
        ;
        public final Integer code;
        public final String desc;

        ChanceStatusEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public static ChanceStatusEnum getChanceStatus(int code) {
            for (ChanceStatusEnum field : ChanceStatusEnum.values()) {
                if (code == field.code) {
                    return field;
                }
            }
            return null;
        }
    }


    public enum IntentionEnum{
        unknow(-1,"未知"),
        nothing(0, "无"),
        low(1,"低"),
        middle(2,"中"),
        heigh(3,"高"),
        ;
        public final Integer code;
        public final String desc;

        IntentionEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public static IntentionEnum getIntentionDesc(int code) {
            for (IntentionEnum field : IntentionEnum.values()) {
                if (code == field.code) {
                    return field;
                }
            }
            return null;
        }
    }
}
